<template>
    <p>父组件</p>
    <!-- <p>{{ msg }}</p> -->
    <!-- <input type="text" v-model="msg" /> -->
    <ChildCom :title="msg" @change="childChange" />
</template>

<script>
import ChildCom from './ChildCom.vue';

export default {
    components:{
        ChildCom
    },

    data(){
        return{
            msg: '这是父组件'
        }
    },
    methods:{
        childChange(value){
            console.log(value);
            
        }
    }
}
</script>